cmake_minimum_required(VERSION 2.8.12)

project(dataStruct)     #定义整个CMake的工程名

set(CMAKE_INCLUDE_CURRENT_DIR ON)
#set(CMAKE_AUTOMOC ON)

#find_package(Qt5Core)
#find_package(Qt5Gui)

INCLUDE_DIRECTORIES(
                queue
                tree/tree
                tree/binary_tree
                tree/heap
                tree/RBTree
                string
                graph )

FILE(GLOB SOURCE_GRAPH  "graph/*.cpp"  "graph/*.h")
FILE(GLOB SOURCE_STRING "string/*.cpp" "string/*.h")
FILE(GLOB SOURCE_QUEUE  "queue/*.cpp"  "queue/*.h")
FILE(GLOB SOURCE_TREE_AVL  "tree/AVLTree/*.cpp"  "tree/AVLTree/*.h")
FILE(GLOB SOURCE_TREE_RB  "tree/RBTree/*.cpp"  "tree/RBTree/*.h")
FILE(GLOB SOURCE_TREE_BIN  "tree/binary_tree/*.cpp"  "tree/binary_tree/*.h")
FILE(GLOB SOURCE_TREE_HEAP  "tree/heap/*.cpp"  "tree/heap/*.h")

add_executable( ${PROJECT_NAME}
                ${SOURCE_GRAPH}
                ${SOURCE_STRING}
                ${SOURCE_QUEUE}
                ${SOURCE_TREE_AVL}
                ${SOURCE_TREE_RB}
                ${SOURCE_TREE_BIN}
                ${SOURCE_TREE_HEAP}

                main.cpp

                tree/tree/tree.h
                tree/tree/tree.cpp
    )
